/* 
 * @Title        (����):Json.java  
 * @Description  (���):
 * @author       (����):�̴��
 * @data         (ʱ��):2018��8��15�� ����5:13:37 
 * @version:  V1.0 
 */

package com.spc.util;

import com.fasterxml.jackson.databind.ObjectMapper;

/*import org.codehaus.jackson.map.ObjectMapper;*/

public class Json {

	public static String getJson(Object obj){// ��װjson
		try{
			ObjectMapper mapper=new ObjectMapper();
			String json=mapper.writeValueAsString(obj);
			return json;
		}catch(Exception e){
			e.printStackTrace();
		}
		return null;
	}
}
